#include<string>
#include<iostream>

#ifndef ITEM_H
#define ITEM_H


using namespace std;

class Item
{
    public:
        Item(string name,string effect):name(name),effect(effect){}
        const string ShowName(){return name;}
        const string ShowEffect(){return effect;}
    private:
        string name;
        string effect;

};

class Consumable:public Item          
{
    public:
        Consumable(string name,string effect,string attribute,int att_improve,int number=0):Item(name,effect),attribute(attribute),att_improve(att_improve),number(number){}
        ~Consumable();
        const int GetNumber(){return number;}
        void Use();
        void Add(int i);
    private:
        string attribute;   
        int att_improve;
        int number;
};



#endif // ITEM_H

